Could Grand Central Dispatch (`libdispatch`) ever be made available on Windows?

Posted by elliottcable on Stack Overflow See other posts from Stack Overflow or by elliottcable
Published on 2010-05-02T02:51:13Z Indexed on 2010/05/02 3:07 UTC
Read the original article Hit count: 292

I’m looking into multithreading, and GCD seems like a much better option than manually writing a solution using pthread.h and pthreads-win32. However, although it looks like libdispatch is either working on, or soon going to be working on, most newer POSIX-compatible systems… I have to ask, what about Windows? What are the chances of libdispatch being ported to Windows? What are the barriers preventing that from happening?

If it came down to it, what would I need to do to preform that portage?

Edit: Some things I already know, to get the discussion started:

  • We need a blocks-compatible compiler that will compile on Windows, no? Will PLBlocks handle that?
  • Can we use the LLVM blocks runtime?
  • Can’t we replace all the pthread.h dependencies in userspace libdispatch with APR calls, for portability? Or, alternatively, use pthreads-win32 I suppose…

© Stack Overflow or respective owner

Related posts about gcd

Related posts about libdispatch